<template>
	<view>

		<!-- 预约人信息 -->
		<view class="information">
			<view class="">
				预约人：{{data.realName}}
			</view>
			<view class="">
				预约人电话：{{data.userPhone}}
			</view>
			<view>
				预约时间：{{data.estimateStartTime}}
			</view>
			<view>
				结束时间：{{data.estimateEndTime}}
			</view>
			<view>
				项目名称：{{data.projectName}}
			</view>
			<view>
				项目时长：{{data.duration}}
			</view>
		</view>
		<view class="button" v-if="data.orderStatus==3" >
			已完成
		</view>
		<view class="button" v-if="data.orderStatus==1">
			进行中
		</view>
		<view class="button" v-if="data.orderStatus==4">
			已取消
		</view>
		<view class="button" v-if="data.orderStatus==0">
			已预约
		</view>
		<view class="button" v-if="data.orderStatus==2">
			待评价
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data:"",//数据
			}
		},
		onLoad(option) {
			this.data = JSON.parse(option.data) 
			 console.log('shuju ',this.data)
		},
		onPullDownRefresh() {
			console.log('refresh');
			setTimeout(function() {
				uni.stopPullDownRefresh();
			}, 1000);
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.information {
		padding: 20rpx;
		background-color: #FFFFFF;
		font-size: 28rpx;

		view {
			margin: 10rpx 0;
		}
	}

	.button {
		position: fixed;
		bottom: 300rpx;
		left: 50%;
		width: 200rpx;
		height: 200rpx;
		margin-left: -100rpx;
		background-color: red;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #FFFFFF;
	}
</style>
